Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow self onboarding with public servicedata #89

Merged
merged 6 commits into from
Jul 24, 2024

Conversation

ishanarya0
Copy link
Member

An user shall be able to onboard herself (only), provided the servicedata she is trying to add has public EDIT permissions.

@ishanarya0 ishanarya0 marked this pull request as draft July 23, 2024 12:50
return nil, grpcUnauthenticated
}
userSelfOnboard = true
if !h.checkIsPublicEditable(ctx, metaDataMap) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of calling it public, what about calling it wildcard?

checkIsWildcardEditable

@ishanarya0 ishanarya0 marked this pull request as ready for review July 24, 2024 06:51
@ishanarya0 ishanarya0 requested a review from mabdh July 24, 2024 06:52
@ishanarya0 ishanarya0 merged commit 52f6eb2 into servicedata-edit-public Jul 24, 2024
4 of 5 checks passed
ishanarya0 added a commit that referenced this pull request Aug 21, 2024
* feat: allow edit role on servicedatakey to be public

* feat: allow self onboarding with public servicedata (#89)

* feat: allow self onboarding with public servicedata

* refactor

* chore: add go mod file

* chore: add formating directive

* fix: err

* chore: fmt

* test: add test to cover self onboarding scenario

* update mock

* feat: use caller email if user email is missing in payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants